package com.zjff.mobiletwo.entity;

import lombok.Data;

import java.util.List;

@Data
public class ProductEntity {
    private int id;
    private int familyid;
    private String name;
    private String familyname;
    private String title;
    private String brand;
    private String model;
    private String age;
    private String origin;
    private String color;
    private String sell;
    private int itemnumber;
    private int price;
    private int soldcount;
    private String pic;
    private List<ProductImgEntity> productImg;

    public  ProductEntity() {
        super();
    }


    public ProductEntity(int id, int familyid, String name, String familyname, String title, String brand,
                         String model, String age, String origin, String color, String sell,
                         int itemnumber, int price, int soldcount, String pic) {
        super();
        this.id = id;
        this.familyid=familyid;
        this.name = name;
        this.familyname = familyname;
        this.title = title;
        this.brand = brand;
        this.model=model;
        this.age=age;
        this.origin=origin;
        this.color=color;
        this.sell=sell;
        this.itemnumber=itemnumber;
        this.price=price;
        this.soldcount=soldcount;
        this.pic=pic;
    }
    public void setFamilyid(int familyid) {
        this.familyid = familyid;
    }
}
